<%@ page language="java" pageEncoding="utf-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
  <head>
    <title>xyTree使用示例</title>
    <link type="text/css" rel="stylesheet" href="<%=basePath %>reminded/style/xtree.css" />
    <!-- 按照很多高手建议，所有的文件都应UTF－8编码，我sorry，用GBK -->

    <!-- 为了使用带复选框树，无顺序 -->
    <script src="<%=basePath %>reminded/js/DivTree.js"></script>
    <script src="<%=basePath %>reminded/js/Tree.js"></script>
    <script src="<%=basePath %>reminded/js/Node.js"></script>

    <script src="<%=basePath %>reminded/js/organize.js"></script>


    <script>
//初始化方法
function init(){
  
  //分局树2
  document.getElementById('ceshi5').appendChild(treeFenju2.div);
  treeFenju2.init();//初始化方法不同
}
//返回选中的记录（叶节点）
function test3(){
  var a =treeFenju2.getNodesMoji();
  if(a.length>0) alert(a.toString());
  else alert('请选中复选框'); 
}

//定义初始化程序
window.onload = init;	
</script>

    <style>
      .size1{
        font:12px normal 宋体;
      }
    </style>
  </head>



  <body>
示例5
      <span class="size1">（展示默认节点的单击方法，init方法不带参数）</span>
      <div id="ceshi5"></div> 
	  <input type="button" value="返回选中的记录（末端节点，就是叶节点）" onclick="test3()" />  <br /><br />
  </body>
</html>
